To find the length of a text string, ie the number of characters it contains, you can use the following syntax with the Length function:
For example, to check that an identification number is the correct length (10 characters in this case), you would write the following rule:
the identification number is valid if
the length of the identification number = 10
The text value may be a text attribute, text constant or any expression that returns a text constant.